//
//  LeftJoinNode.m
//  DataCollector
//
//  Created by jiro on 12/07/02.
//  Copyright 2012 jiro music. All rights reserved.
//

#import "LeftJoinNode.h"

LeftJoinNode::LeftJoinNode( NSString* tableNameArg, const ExpressionNode& joinOnConditionArg )
{
	tableName = tableNameArg;
	joinOnCondition = new ExpressionNode( joinOnConditionArg );
}

NSString* LeftJoinNode::query() const
{
	NSString* s = [ NSString stringWithFormat: @"left join %@ on %@", tableName, joinOnCondition->query() ];
	return s;

}
